﻿@model IEnumerable<WebTV_Kickstarter.Gebruiker>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";

}

<h2>Index</h2>

<p>
    @Html.ActionLink("Registreer", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.Label("Naam")
        </th>
        <th>
            @Html.Label("Adres")
        </th>
        <th>
            @Html.Label("Plaats")
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Email)
        </th>
        <th>
            @Html.Label("Bedrijf")
        </th>
        <th>
            @Html.Label("Admin")
        </th>
        <th>
            @Html.Label("Gedoneerd")

        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Adress)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Place)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Company)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.isAdmin)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TotalDonated)
        </td>
        <td>
            @Html.ActionLink("Bewerk", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Verwijder", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
